package com.glzn.springboot03.mapper;

import com.glzn.springboot03.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author Administrator
 */
@Mapper
@Repository
public interface UserMapper {
	/**
	 * 根据登录名查找人
	 * @param login
	 * @return
	 */
	@Select("SELECT * FROM user WHERE login=#{login}")
	User findByLogin(String login);
}
